package com.fxm.client;

import com.fxm.config.feign.NoticeFeignConfig;
import com.fxm.returns.RespEntity;
import com.fxm.returns.RespTable;
import com.fxm.vo.param.AnswerParam;
import com.fxm.vo.param.NoticeParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author fxm
 * @version V1.0.0
 * @description: 公告管理 feign调用
 * @date 2021/02/24 17:00
 */
@FeignClient(name = "noticeFeignClient", url = "${manage.url}", configuration = NoticeFeignConfig.class)
public interface NoticeClient {

    /**
     * 公告列表
     * @return
     */
    @GetMapping("/notice/list")
    RespEntity noticeList();

    /**
     * 发布公告
     * @return
     */
    @PostMapping("/notice/insert")
    RespEntity insertNotice(@RequestBody NoticeParam noticeParam);

}
